package com.qk.management.util;

import com.qk.management.aop.RedisAop;
import com.qk.management.task.RedisTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author 16778
 * @date 2025/10/18 15:38
 * @description
 */
@Component
public class RedisPre implements ApplicationRunner {

    @Autowired
    private RedisTask redisTask;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        redisTask.update();
    }
}
